<?php /* Smarty version Smarty-3.1.12, created on 2013-04-13 16:29:46
         compiled from "D:\wamp\www\acps_new\templates\tariffs\list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:24155512a514a79cff4-33012344%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0e418fcab125d29f59e7613238902116b756b8dd' => 
    array (
      0 => 'D:\\wamp\\www\\acps_new\\templates\\tariffs\\list.tpl',
      1 => 1365870583,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '24155512a514a79cff4-33012344',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_512a514a79e261_36107632',
  'variables' => 
  array (
    'data' => 0,
    'filter' => 0,
    'value' => 0,
    'counter' => 0,
    'bgClass' => 0,
    'tariff' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_512a514a79e261_36107632')) {function content_512a514a79e261_36107632($_smarty_tpl) {?><script type="text/javascript">
    
        $(document).ready(function() {
            $("#fulltext").keyup(function(event){
                if(event.keyCode == 13){
                    setFulltext($('#fulltext').val(),'list_of_tariffs_fulltext')
                }
            });
            $("#fulltext").focus();
        });
    
</script>
<div class="content">
    <ul class="subNavig">
        <li><a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=list_of_clients">Clients</a></li>
        <li><a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=list_of_users">Users</a></li>
        <li><a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=list_of_tariffs">Tariffs</a></li>
    </ul>
    <h2 class="pageTitle">List of tariffs</h2>
    <?php echo $_smarty_tpl->getSubTemplate ($_smarty_tpl->tpl_vars['data']->value['pathToError'], $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

    <?php if ($_smarty_tpl->tpl_vars['data']->value['currentFilter']||$_smarty_tpl->tpl_vars['data']->value['currentFulltext']!=''){?>
        <div class="menu-list bgDark">
            <b>Current filter:</b> 
            <ul>
                <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['value']->_loop = false;
 $_smarty_tpl->tpl_vars['filter'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['currentFilter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
$_smarty_tpl->tpl_vars['value']->_loop = true;
 $_smarty_tpl->tpl_vars['filter']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
                    <li><?php echo $_smarty_tpl->tpl_vars['filter']->value;?>
 = <i><?php echo $_smarty_tpl->tpl_vars['value']->value;?>
</i> [<a href="javascript: cancelFilter('<?php echo $_smarty_tpl->tpl_vars['filter']->value;?>
','list_of_tariffs_filter')" class="baseLink">Cancel</a>]</li>
                <?php } ?>
                <?php if ($_smarty_tpl->tpl_vars['data']->value['currentFulltext']!=''){?>
                    <li>Fulltext = <i><?php echo $_smarty_tpl->tpl_vars['data']->value['currentFulltext'];?>
</i> [<a href="javascript: cancelFulltext('list_of_tariffs_fulltext')" class="baseLink">Cancel</a>]</li>
                <?php }?>
            </ul>
        </div>
    <?php }?>
    <div class="menu-list">
        Fulltext search: <input id="fulltext" type="text" value="<?php if ($_smarty_tpl->tpl_vars['data']->value['currentFulltext']!=''){?><?php echo $_smarty_tpl->tpl_vars['data']->value['currentFulltext'];?>
<?php }?>" /><input value="Search" type="button" onclick="setFulltext($('#fulltext').val(),'list_of_tariffs_fulltext')" />
    </div>
    <form action="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=list_of_tariffs" method="post" id="addingUser">
        <div class="menu-list">
            <a href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=add_tariff" class="basicButton">Add tariff</a>
            <select name="action" onchange="submitForm('addingUser')">
                <option value="">Actions ...</option>
                <option value="deleteTariffs">Delete tariff(s)</option>
            </select>
        </div>
        <table class="list">
            <tr>
                <th><input type="checkbox" id="checkAll" onchange="checkIt('checkAll')" /></th>
                <th><a href="javascript: order('title','list_of_tariffs_order')">Title <?php if ($_smarty_tpl->tpl_vars['data']->value['currentOrder'][0]=="title"){?><img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
images/<?php echo $_smarty_tpl->tpl_vars['data']->value['currentOrder'][1];?>
.png" height="14" width="14" /><?php }?></a></th>
                <th><a href="javascript: order('tariff','list_of_tariffs_order')">Tariff <?php if ($_smarty_tpl->tpl_vars['data']->value['currentOrder'][0]=="tariff"){?><img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
images/<?php echo $_smarty_tpl->tpl_vars['data']->value['currentOrder'][1];?>
.png" height="14" width="14" /><?php }?></a></th>
                <th><a href="javascript: order('servis_tariff','list_of_tariffs_order')">Servis tariff <?php if ($_smarty_tpl->tpl_vars['data']->value['currentOrder'][0]=="servis_tariff"){?><img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
images/<?php echo $_smarty_tpl->tpl_vars['data']->value['currentOrder'][1];?>
.png" height="14" width="14" /><?php }?></a></th>
                <th><a href="javascript: order('unit','list_of_tariffs_order')">Unit <?php if ($_smarty_tpl->tpl_vars['data']->value['currentOrder'][0]=="unit"){?><img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
images/<?php echo $_smarty_tpl->tpl_vars['data']->value['currentOrder'][1];?>
.png" height="14" width="14" /><?php }?></a></th>
                <th><a href="javascript: order('type_of_record','list_of_tariffs_order')">Type of record <?php if ($_smarty_tpl->tpl_vars['data']->value['currentOrder'][0]=="type_of_record"){?><img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
images/<?php echo $_smarty_tpl->tpl_vars['data']->value['currentOrder'][1];?>
.png" height="14" width="14" /><?php }?></a></th>
                <th><a href="javascript: order('description','list_of_tariffs_order')">Description <?php if ($_smarty_tpl->tpl_vars['data']->value['currentOrder'][0]=="description"){?><img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
images/<?php echo $_smarty_tpl->tpl_vars['data']->value['currentOrder'][1];?>
.png" height="14" width="14" /><?php }?></a></th>
            </tr>
            <?php $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(1, null, 0);?>
            <?php  $_smarty_tpl->tpl_vars['tariff'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tariff']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['tariffs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tariff']->key => $_smarty_tpl->tpl_vars['tariff']->value){
$_smarty_tpl->tpl_vars['tariff']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['tariff']->key;
?>
                <?php if ($_smarty_tpl->tpl_vars['counter']->value==1){?>
                    <?php $_smarty_tpl->tpl_vars['bgClass'] = new Smarty_variable('bgDark', null, 0);?>
                <?php }else{ ?>
                    <?php $_smarty_tpl->tpl_vars['bgClass'] = new Smarty_variable('bgLight', null, 0);?>
                <?php }?>
                <tr class="<?php echo $_smarty_tpl->tpl_vars['bgClass']->value;?>
">
                    <?php if ($_smarty_tpl->tpl_vars['counter']->value==1){?>
                        <?php $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(2, null, 0);?>
                    <?php }else{ ?>
                        <?php $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(1, null, 0);?>
                    <?php }?>
                    <td>
                        <input name="tariffId[]" value="<?php echo $_smarty_tpl->tpl_vars['tariff']->value['Id'];?>
" class="userselector" type="checkbox" />
                    </td>
                    <td style="width: 170px;"><a class="filterLink" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=edit_tariff&tariff=<?php echo $_smarty_tpl->tpl_vars['tariff']->value['Id'];?>
"><?php echo $_smarty_tpl->tpl_vars['tariff']->value['title'];?>
</a></td>
                    <td><a class="filterLink" href="javascript: filter('tariff','<?php echo $_smarty_tpl->tpl_vars['tariff']->value['tariff'];?>
','list_of_tariffs_filter')"><?php echo $_smarty_tpl->tpl_vars['tariff']->value['tariff'];?>
</a></td>
                    <td><a class="filterLink" href="javascript: filter('servis_tariff','<?php echo $_smarty_tpl->tpl_vars['tariff']->value['servis_tariff'];?>
','list_of_tariffs_filter')"><?php echo $_smarty_tpl->tpl_vars['tariff']->value['servis_tariff'];?>
</a></td>
                    <td><a class="filterLink" href="javascript: filter('unit','<?php echo $_smarty_tpl->tpl_vars['tariff']->value['unit'];?>
','list_of_tariffs_filter')"><?php echo $_smarty_tpl->tpl_vars['tariff']->value['unit'];?>
</a></td>
                    <td><a class="filterLink" href="javascript: filter('type_of_record','<?php echo $_smarty_tpl->tpl_vars['tariff']->value['type_of_record'];?>
','list_of_tariffs_filter')"><?php echo $_smarty_tpl->tpl_vars['tariff']->value['type_of_record_info']['type_of_record'];?>
</a></td>
                    <td style="text-align: left; width: 450px; "><?php echo $_smarty_tpl->tpl_vars['tariff']->value['description'];?>
</td>
                </tr>
            <?php } ?>
        </table>
    </form>
    <div class="menu-list">
        <span class="pager"><?php echo $_smarty_tpl->tpl_vars['data']->value['pager'];?>
</span>
        Records per page
        <select class="pager" size="1" onchange="changeRecordsPerPage(this.value, 'list_of_tariffs_pager')">
            <option <?php if ($_SESSION['list_of_tariffs_pager']==10){?>selected="selected"<?php }?> value="10">10</option>
            <option <?php if ($_SESSION['list_of_tariffs_pager']==20){?>selected="selected"<?php }?> value="20">20</option>
            <option <?php if ($_SESSION['list_of_tariffs_pager']==50){?>selected="selected"<?php }?> value="50">50</option>
        </select>
    </div>
</div><?php }} ?>